<section id="content">

	<h2 class="article">{if isset($compte)}{#MODIFIER#}{else}{#NOUVEAU_COMPTE#}{/if}</h2>

    <form class="article buttons" name="formulaire" action="?action={if isset($compte)}modifierCompte{else}ajouterCompte{/if}" method="post">

        <fieldset class="form-text long admin">
            <label>{#IDENTIFIANT#}<em>*</em></label>
            <input type="text" name="identifiant" value="{if isset($compte)}{$compte->getUsername()}{/if}" id="identifiant" class="validate[required,length[0,20]]"/>
        </fieldset> 

        <fieldset class="long admin">
            <label>{#GROUPE#}<em>*</em></label>
            <select name="groupe" id="groupe" class="validate[required]">
            	<option value="">---</option>
                {foreach from=$groupes item=groupe }
                    <option value="{$groupe->getNom()}">{$groupe->getNom()}</option>
                {/foreach}
            </select>
        </fieldset> 

        <fieldset class="form-text long admin">
            <label>{#MOT_PASSE#}<em>*</em></label>
            <input type="password" name="motPasse" value="{if isset($motPasse)}{$motPasse}{/if}" id="password" class="validate[required,length[6,11]] text-input" />
        </fieldset> 

        <fieldset class="form-text long admin">
            <label>{#MOT_PASSE_CONF#}<em>*</em></label>
            <input type="password" class="validate[required,confirm[password]] text-input" id="password2" class="validate[required,length[6,11]] text-input"/>
        </fieldset> 
        
        <fieldset class="form-actions">
    		<input type="reset" value="{#ANNULER#}" name="Annuler"  onclick="{literal};javascript:return confirm('{/literal}{#MESSAGE_ANNULER#}{literal}'){/literal}" />
	{if isset($compte)}<input type="submit" class="submit" name="modifierCompte" value="{#MODIFIER#}" />{else}<input type="submit" class="submit" name="creerCompte" 
    value="{#CREER_COMPTE#}" />{/if}
		</fieldset>

    </form>
    
      <h3 class="article">{$confirmation|default:''}</h3>
        
</section>